home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
listings
/
v_08_12
/
8n12076a
< prev
next >
Wrap
Text File
|
1990-08-28
|
357b
|
16 lines
/* receiver.c - Receiver task for asynchronous communication */
#define SYNC 0
static handler Sync(msg_t *msg_ptr) { /* for synchronization only */
}
task Receiver(void) {
task_setHandler(1, Sync); /* this task has one handler called Sync */
loop {
/* wait on Sync */
task_enableWait(NO_TIMEOUT, 1, SYNC);
}
}